<template>
  <router-view />
</template>

<script setup>
import { generateNewStyle, writeStyle } from '@/utils/theme'
import { onMounted } from 'vue'
import { useStore } from 'vuex'
const store = useStore()
onMounted(async () => {
  const cssText = await generateNewStyle(store.getters.mainColor)
  writeStyle(cssText)
  close()
})
</script>

<style lang="scss">
</style>
